package com.ht.feign;

import com.ht.data.Result;
import com.ht.dto.MembersDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(value = "ht-members")
public interface MembersFeign {

    //提交订单
    @PostMapping
    Result<MembersDTO> addMembers(@RequestBody MembersDTO dto, @RequestHeader("AuthToken")String token);

}
